= field_set do
  = f.referenced_association :entity
  = f.input :direction
  = f.input :amount, as: :string, input_html: { pattern: "[0-9]+([\.][0-9]+)?" }
  = f.input :currency
  = f.custom_fields
